boot: Add ostree-finalize-staged.path
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 28 Sep 2018 18:30:38 +0000 (14:30 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 23 Oct 2018 13:10:49 +0000 (13:10 +0000)
commitac1a919ffd4fe944d06c4f4510604baa73d1bf8e
treecfa0e1d3ff26bb16d5d7ea9514b73fdfb13d33ee
parent1e16aec357c5c6f02d358c81ce8c81ce68fe0818
boot: Add ostree-finalize-staged.path

Rather than manually starting the `ostree-finalize-staged.service` unit,
we can leverage systemd's path units for this. It fits quite nicely too,
given that we already have a path we drop iif we have a staged
deployment.

To give some time for the preset to make it to systems, we don't yet
drop the explicit call to `systemctl start`. Though we do make it
conditional based on a DEBUG env var so that we can actually test it in
CI for now. Once we're sure this has propagated, we can drop the
`systemctl start` path and the env var together.

Closes: #1740
Approved by: cgwalters
Makefile-boot.am
src/boot/ostree-finalize-staged.path [new file with mode: 0644]
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
tests/installed/destructive/staged-deploy.yml